import request from '@/utils/request'

export function queryByPage (data) {
  return request({
    url: '/orderInfo/queryByPage',
    method: 'post',
    data
  })
}

export function insert (data) {
  return request({
    url: '/orderInfo/insert',
    method: 'post',
    data
  })
}

export function update (data) {
  return request({
    url: '/orderInfo/update',
    method: 'post',
    data
  })
}

export function deleteById (params) {
  return request({
    url: '/orderInfo/deleteById',
    method: 'get',
    params
  })
}

export function queryEvaluation (data) {
  return request({
    url: '/evaluationHospital/queryByPage',
    method: 'post',
    data
  })
}

export function queryEvaluationUid (data) {
  return request({
    url: '/evaluationQuestion/queryByEvaUid',
    method: 'post',
    data
  })
}

export function insertBatch (data) {
  return request({
    url: '/evaluationResult/insertBatch',
    method: 'post',
    data
  })
}

export function distributeNurse (data) {
  return request({
    url: '/orderInfo/distributeNurse',
    method: 'post',
    data
  })
}